/**
 * 作者: LDL
 * 说明:
 * 时间: 2015/7/19 15:14
 */
class AbstractClass {

}

abstract class People{
    def speak
    val name:String
    val age :Int
}

class Worker extends People{
    def speak: Unit ={
        println("Hello ,Everone!!!")
    }
    val name = "Rocky"
    val age = 22
}

object AbstractClass extends App{
    val worker = new Worker
    worker.speak
    println(worker.name +":"+worker.age )
}
